package org.example;



import org.example.bean2.Doggy;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: maven3
 * @description:
 * @author: zy
 * @create: 2025-09-09 11:34
 */
public class App4 {
    public static void main(String[] args) {
        ApplicationContext ctx=new AnnotationConfigApplicationContext(AppConfig4.class);
        Doggy doggy= (Doggy) ctx.getBean("com.zy.bean2.Doggy");
        System.out.println(doggy);
    }
}
